package DisizhouZuoye;

public class TextStudent {
    public static void main(String[] args) {
        //创建实例化对象
//        Student student1 = new Student(1,"张三","男",17);
//        Score score1 = new Score(1,"语文",99.9F);
//        Score score2 = new Score(1,"数学",99.8F);
//        Score score3 = new Score(1,"英语",99.7F);
        Student student1 = new Student();
        student1.setSid(1);
        student1.setStuName("张三");
        student1.setStuSex("男");
        student1.setStuAge(17);
        System.out.print("学号：" + student1.getSid()+",");
        System.out.print("姓名：" + student1.getStuName()+",");
        System.out.print("性别：" + student1.getStuSex()+",");
        System.out.println("年龄：" + student1.getStuAge()+",");
        Score score1 = new Score();
        Score score2 = new Score();
        Score score3 = new Score();
        score1.setSid(1);
        score1.setSub("语文");
        score1.setScore(99.9F);
        System.out.print("学号：" + score1.getSid()+",");
        System.out.print("科目：" + score1.getSub()+",");
        System.out.println("成绩：" + score1.getScore()+",");
        score2.setSid(1);
        score2.setSub("数学");
        score2.setScore(99.8F);
        System.out.print("学号：" + score2.getSid()+",");
        System.out.print("科目：" + score2.getSub()+",");
        System.out.println("成绩：" + score2.getScore()+",");
        score3.setSid(1);
        score3.setSub("英语");
        score3.setScore(99.7F);
        System.out.print("学号：" + score3.getSid()+",");
        System.out.print("科目：" + score3.getSub()+",");
        System.out.println("成绩：" + score3.getScore()+".");
        //输出对象的相关信息
//        System.out.println(student1);
//        System.out.println(score1);
//        System.out.println(score2);
//        System.out.println(score3);
    }
}
